﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="QuanLiNguoiDung.ascx.cs" Inherits="Webmau.Admin.Control.QuanLiNguoiDung" %>
<asp:Button ID="btnDanhSach" runat="server" Text="Danh sách người dùng" 
    Width="160px" onclick="btnDanhSach_Click" />
<asp:Button ID="btnAdmin" runat="server" onclick="btnAdmin_Click" 
    Text="Lấy danh sách admin" />
<asp:Button ID="btnCapTaiKhoan" runat="server" 
    PostBackUrl="~/Admin/CapTaiKhoan.aspx" Text="Cấp tài khoản" />
<br />
<p>
    Tìm kiếm người dùng:
    <asp:TextBox ID="txtTim" runat="server" Width="287px" 
        ontextchanged="TextBox1_TextChanged"></asp:TextBox>
    <asp:Button ID="btnTim" runat="server" Text="Tìm" onclick="btnTim_Click" 
        Width="48px" />
</p>
<p>
    &nbsp;&nbsp;&nbsp; </p>
<asp:GridView ID="gvDanhSach" runat="server" AutoGenerateColumns="False" 
    CellPadding="4" ForeColor="#333333" GridLines="None" style="text-align: center" 
    Width="940px" Height="40px" onrowcommand="gvDanhSach_RowCommand">
    <RowStyle BackColor="#EFF3FB" />
    <Columns>
        <asp:BoundField DataField="IDNguoiDung" HeaderText="ID" />
        <asp:BoundField DataField="MaNhom" HeaderText="Nhóm" />
        <asp:BoundField DataField="TenNguoiDung" HeaderText="Họ tên" />
        <asp:BoundField DataField="SoDienThoai" HeaderText="Số ĐT" />
        <asp:BoundField DataField="NgaySinh" HeaderText="Ngày sinh" />
        <asp:BoundField DataField="GioiTinh" HeaderText="Giới tính" />
        <asp:BoundField DataField="DiaChi" HeaderText="Địa chỉ" />
        <asp:BoundField DataField="Hinh" HeaderText="Hình cá nhân" />
        <asp:CommandField DeleteText="Xóa" ShowDeleteButton="True" ShowHeader="True" />
    </Columns>
    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <EditRowStyle BackColor="#2461BF" />
    <AlternatingRowStyle BackColor="White" />
</asp:GridView>

